<?php

namespace Admin\Entity;

class Policy {

    public $policyID;
    public $policyName;
    public $amount;
    public $unitOf;

    public function exchangeArray($data) {
        $this->policyID = (isset($data['policyID'])) ? $data['policyID'] : null;
        $this->policyName = (isset($data['policyName'])) ? $data['policyName'] : null;
        $this->amount = (isset($data['amount'])) ? $data['amount'] : null;
        $this->unitOf = (isset($data['unitOf'])) ? $data['unitOf'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}